<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class JS_Controller extends CI_Controller {
	public $U,$Contract_status;
	public $meta = array();
	/**
	 * 自定义控制器
	 *
	 */
	public function __construct()
	{
		parent::__construct();
		header("content-type:text/html; charset=utf-8");
		$this->load->database();
	}
	
	/*
	 *判断是否登录
	 *return bool
	 */
	private function _is_login()
	{
		$session_id = $this->session->userdata('uid');
		if($session_id < 1)
		{
			return false;
		}
		return true;
	}
	
	/*
	 *载入特定js
	 */
	public function specific($jsname)
	{
		if(file_exists(APPPATH.'/views/js/'.$jsname.'.php'))
		{
			$this->load->view('js/'.$jsname);
		}
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */